<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent pageFormContent">
            <tr>
                <td><@label key='process_name.C,colon'>流程名称：</@label></td>
                <td><input type="text" name="name" value="${condition.name!''}"/></td>
                <td><@label key='process_key.C,colon'>流程key：</@label></td>
                <td><input type="text" name="key" value="${condition.key!''}"/></td>
                <td><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key='query.B'>查询</@label></button></div></div></td>
                </tr>
        </table>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="icon" target="dialog" mask="true"  width="900" height="600" 
            href="${rc.getContextPath()}/manage/engine/showProcessImg?processDefinitionId={process_id}"><span><@label key='viewProcessImg.C'>查看流程图</@label></span></a></li>
            <li><a class="add" target="dialog" mask="true"  width="680" height="400" 
            href="${rc.getContextPath()}/manage/workflow/startWorkFlow/{process_id}"><span>启动流程</span></a></li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135">
        <thead>
            <tr>
                <th width="100"><@label key='process_name.C'>流程名称</@label></th>
                <th width="100"><@label key='process_key.C'>流程key</@label></th>
                <th width="100"><@label key='process_version.C'>版本号</@label></th>
                <th width="50"><@label key='processStatus.C'>状态</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as process>
            <tr target="process_id" rel="${process.id!''}">
                <td>${process.name!''}</td>
                <td>${process.key!''}</td>
                <td>V:${process.version!''}</td>
                <td><#if process.suspended?? && process.suspended==true><@label key='suspended.C'>已挂起</@label><#else><@label key='normal.C'>正常</@label></#if></td>
            </tr>
        </#list>
        <#else>
        <tr target="process_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="process_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>